package com.bank.javabean;

import java.util.Date;

/**
 * @Auther: Liu
 */
public class Detail {
    private int id;
    private String uname;
    private String tname;
    private double money;
    private Date time;
    private int type;//1-存款 2-取款 3-转账

    public Detail() {
    }

    public Detail(String uname, String tname, double money, int type) {
        this.uname = uname;
        this.tname = tname;
        this.money = money;
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Detail{" +
                "id=" + id +
                ", uname='" + uname + '\'' +
                ", tname='" + tname + '\'' +
                ", money=" + money +
                ", time=" + time +
                ", type=" + type +
                '}';
    }
}
